package com.lemon.reggie.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

@Data
public class AddCartDTO implements Serializable {

    private static final long serialVersionUID = 4481194488537950983L;

    @ApiModelProperty(value = "名称")
    @NotBlank(message = "名称不能为空！")
    private String name;

    @ApiModelProperty(value = "图片")
    @NotBlank(message = "图片名称不能为空！")
    private String image;

    @ApiModelProperty(value = "菜品id")
    private Long dishId;

    @ApiModelProperty(value = "套餐id")
    private Long setmealId;

    @ApiModelProperty(value = "口味")
    private String dishFlavor;

    @ApiModelProperty(value = "金额")
    @NotNull(message = "金额不能为空！")
    private BigDecimal amount;

}
